import json
str = '{"name":"syy","age":22,"hobby":["games", "reading", "music"]}'
loads = json.loads(str)

hobby = loads['hobby']

print(loads)

print(hobby)

hobby_ = hobby[:2]

print(hobby_)